package service;


import models.User;
import org.springframework.stereotype.Service;

@Service
public interface UserService {


    User register(String userName, String password, String email);

    User getUserByUsername(String username);


    boolean login(String userName, String password);

    String getUserPassword(String name);

    boolean retrievePassword(String userName, String email);

    void banUser(Integer userId);

    void unbanUser(Integer userId);

    void deleteUser(Integer userId);

    void viewPhoto(String photoID);

    void likePhoto(String photoID);

    void commentPhoto(String photoID, String comment);

    void appealBan(String userId, String appeal);

    void reportPhoto(String photoID, String userId);

    void reportComment(String commentID, String userId);

    int getUserNum();
    User getUserByUid(Integer uid);
    String getUserData(String name);
    int getUseridByname(String name);
    void upDataUser(User user);
}